<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
<h1>
    <fmt:message key="app.users.all.title"/>
</h1>

<c:forEach var="user" items="${users}">
    <div class="entry">
        <div class="entry-left">
            <img src="/static-images/pic-user.gif">
        </div>
        <div class="entry-right">
            <div class="entry-header">
                <a href="<c:url value="/viewprofile.form/${user.username}"/>">
                    <c:out value="${user.username}"/>
                </a>
            </div>
            <div class="entry-data">
                <fmt:formatDate value="${user.registerDate}"/>
                <a href="<c:url value="/viewprofile.form/${user.username}"/>">
                    <c:out value="${user.fullName}"/>
                </a>
                <authz:authorize ifAllGranted="ROLE_SUPERVISOR">
                    <a href="<c:url value="/system/edituser.form/${user.id}"/>"><fmt:message key="app.user.profile.edit"/></a>
                </authz:authorize>                
            </div>
        </div>
    </div>
    <br>

</c:forEach>
